public class Main {
    public static void main(String[] args) {
        linkedList list = new linkedList();
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);

        list.display();
        list.clear();
        System.out.println("======");
        list.display();
    }
}
